
package org.xteam.sled.ast;

import org.xteam.parser.runtime.Span;

public class FieldsSpec extends Spec {
	
	
	protected Ident name;
	protected IntegerLiteral size;
	protected org.xteam.parser.runtime.AstList<FieldSpec> fields;
	
	public FieldsSpec(Span span, Ident name,IntegerLiteral size,org.xteam.parser.runtime.AstList<FieldSpec> fields) {
		super(span);
		this.name = name;
		this.size = size;
		this.fields = fields;
	}
	
	
	public Ident getName() {
		return name;
	}
	
	public void setName(Ident name) {
		this.name = name;
	}
	
	public IntegerLiteral getSize() {
		return size;
	}
	
	public void setSize(IntegerLiteral size) {
		this.size = size;
	}
	
	public org.xteam.parser.runtime.AstList<FieldSpec> getFields() {
		return fields;
	}
	
	public void setFields(org.xteam.parser.runtime.AstList<FieldSpec> fields) {
		this.fields = fields;
	}
	

	public void visit(ISledVisitor visitor) {
		visitor.visitFieldsSpec(this);
	}
}
